<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const handleLogout = () => {
  // 登出逻辑待实现
  router.push('/login')
}
</script>

<template>
  <div class="home-container">
    <h1>欢迎来到首页</h1>
    <el-button type="danger" @click="handleLogout">退出登录</el-button>
  </div>
</template>

<style scoped>
.home-container {
  padding: 20px;
  text-align: center;
}
</style>